//
//  ConcreteObserver2.hpp
//  Observer
//
//  Created by Shane on 17/9/18.
//  Copyright © 2017年 Shane. All rights reserved.
//

#ifndef ConcreteObserver2_h
#define ConcreteObserver2_h

#include "Observer.h"
#include "Subject.h"

class ConcreteObserver2: public Observer {
public:
    void update(int value);
    ConcreteObserver2(Subject *pSubject):m_pSubject(pSubject){}
private:
    Subject *m_pSubject;
};

#endif /* ConcreteObserver2_hpp */
